<template>
  <div class="orders-pay" v-if="list">
    <van-submit-bar :price="priceSrc-0" button-text="在线支付" @submit="onSubmit" text-align="left" />
  </div>
</template>

<script lang="ts" setup>
import { showToast } from 'vant'
import { useCarStore } from '@/stores/car'
const cart = useCarStore();
const onSubmit = () => showToast('支付成功！静等收货~')

//props
const props = defineProps(['list'])

//拿出数据
const renderlist = computed(() => {
  if (props.list) {
    return props.list
  }
  return
})

//价格
const priceSrc = computed(() => {
  return cart.carTotal * 100
})


</script>

<style scoped></style>
